<?PHP
ob_start("ob_gzhandler");
session_start();

if($_SESSION['logged']!="TRUE") {
include('protect.inc.php');
}

$username="dragonballpalace2";
$password="";
$database="dragonballpalace2_nl_db";
$act=$_GET['act']


mysql_connect(localhost,$username,$password);
mysql_select_db($database) or die("Unable to select database! Contact site admin! Cause he made a stupid mistake!");

if (isempty($act)){
if(!get_magic_quotes_gpc()){
$title=addslashes($_POST['title']);
$cat=addslashes($_POST['cat']);
$story=addslashes($_POST['mstory']);
$extstory=addslashes($_POST['extstory']);
}else{
$title=$_POST['title'];
$cat=$_POST['cat'];
$story=$_POST['mstory'];
$extstory=$_POST['extstory'];
}
$uname=$_SESSION['uname']

mysql_query("INSERT INTO gotm_pending VALUES ('$title','$cat','$story','$extstory','$uname')");
mysql_close();
header("Location: http://members.lycos.nl/dragonballpalace2/alpha/crew/crew.php?not=suctrans");
}

if ($act==)
?>
